# -*- coding: utf-8 -*-
"""
@Time    : 2021/10/9 3:01
@Author  : Leibuyun
@File    : 3.7 无穷大与NaN.py
"""

if __name__ == '__main__':
    # 使用float()来创建正无穷大, 负无穷大， NaN
    a = float('inf')
    b = float('-inf')
    c = float('nan')
    print(a/a) # nan
    print(a + b) # nan
    print(c + 23) # nan
    print(a + 56) # inf